package it.eng.area118.mdocommon.ntp;

public class NTPDatum {

	private long localTimestamp;

	private long proposedTimestamp;

	private long offset;

	public NTPDatum() {
		localTimestamp = -1;
		proposedTimestamp = -1;
		offset = 0;
	}

	/**
	 * 
	 * @uml.property name="localTimestamp"
	 */
	public long getLocalTimestamp() {
		return localTimestamp;
	}

	/**
	 * 
	 * @uml.property name="localTimestamp"
	 */
	public void setLocalTimestamp(long localTimestamp) {
		this.localTimestamp = localTimestamp;
	}

	/**
	 * 
	 * @uml.property name="offset"
	 */
	public long getOffset() {
		return offset;
	}

	/**
	 * 
	 * @uml.property name="offset"
	 */
	public void setOffset(long offset) {
		this.offset = offset;
	}

	/**
	 * 
	 * @uml.property name="proposedTimestamp"
	 */
	public long getProposedTimestamp() {
		return proposedTimestamp;
	}

	/**
	 * 
	 * @uml.property name="proposedTimestamp"
	 */
	public void setProposedTimestamp(long proposedTimestamp) {
		this.proposedTimestamp = proposedTimestamp;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer(16);

		sb.append("NTPDatum[ ");
		sb.append("localTimestamp(");
		sb.append(localTimestamp);
		sb.append(") proposedTimestamp(");
		sb.append(proposedTimestamp);
		sb.append(") offset(");
		sb.append(offset);
		sb.append(")]");

		return sb.toString();
	}

}
